
<?php
use yii\helpers\Html;
use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
use doumiaoduo\layer\LayerAsset;
use common\components\helpers\Fun;
LayerAsset::register($this);
LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>
<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <div id="search-area" class="yx-bgf7f7f7 yx-radius5 zx-mg yx-function2 yx-pr0">
        <?= Html::beginForm(Fun::url(['complaint/index']), 'get', ['enctype' => 'multipart/form-data']) ?>
        <?=\common\components\helpers\Search::textInput('mechanic_id',null,['label'=>'机构','class'=>'yx-width150 zx-lh24 yx-ml6'])?>
        <?=\common\components\helpers\Search::dropDownList('month',null,array_merge([null=>'请选择'],$months),['label'=>'月份','promote'=>'请选择..','class'=>'search diy_select_txt'])?>
        <?=\common\components\helpers\Search::dropDownList('state',null, [null=>'请选择',0=>'未付款',1=>'已付款'],['label'=>'状态','promote'=>'请选择..','class'=>'search diy_select_txt'])?>
        <?=Html::submitButton('搜索',['class'=>'yx-search yx-radius2'])?>
        <?php Html::endForm() ?>
        <div class="yx-clear"></div>
    </div>
    <div class="docs-main zx-mg">
        <table id="tablesaw" class="tablesaw table yx-table1 yx-table5 table-striped with-check"  data-tablesaw-mode="swipe" data-tablesaw-minimap>
            <thead>
            <tr class="yx-bgd2f6ec">
                <th><?= \Yii::t('zhtfrontend', '机构名称'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '分成金额'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '补贴金额'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '额外金额'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '总金额'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '月份'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '当前流程'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '付款状态'); ?></th>
                <th><?= \Yii::t('zhtfrontend', '操作'); ?></th>
            </tr>
            </thead>
            <?php foreach($data as $item) { ?>
            <tr>
                <td><?=$item['mechanic_name']?></td>
                <td><?=$item['commission_money']?></td>
                <td><?=$item['subsidy_money']?></td>
                <td><?=$item['additional_money']?></td>
                <td><?=$item['total']?></td>
                <td><?=$item['year'].'年'.$item['month'].'月'?></td>
                <td><?=$item['process']?></td>
                <td><?=$item['pay_status_name']?></td>
                <td><?=$item['mechanicoperate']?></td>
            </tr>
            <?php } ?>
        </table>
        </div>
    </div>







